package com.oa.api;
import com.oa.fallback.LeaveFallBack;
import com.oa.po.Leave;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;
import java.util.Map;

//,com.oa.oaspccommon.fallback = LeaveFallBack.class
@FeignClient(value = "examination-service",fallback = LeaveFallBack.class)
public interface LeaveServiceApi {
    @RequestMapping(value = "/leave",method = RequestMethod.POST)
    int addLeave(Leave leave);
    @RequestMapping(value = "/listleave",method = RequestMethod.POST)
     List<Leave> list_lever(Map map);

}
